#include "singerlist.h"

#include <QPainter>
#include "ktv/model/resource/resource.h"
#include "ktv/ktv.h"

SingerList::SingerList(KTV *k, int w, int h, QList<MyItem *> *singers)
    : MyList(k, w, h, singers)
{
    backgroundPixmap = Resource::getInstance()->backgroundPixmap_singerList;
}

void SingerList::selectCurrentItem()
{
    ktv->requestSinger(currentItem);
}

void SingerList::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
    Q_UNUSED(option);
    Q_UNUSED(widget);
    painter->drawPixmap(-width/2, -height/2, width, height, *backgroundPixmap);
}
